package j02method;

public class J01M1 {
    //方法  jvm - main
    public static void main(String[] args) {

        //取个名字
        for (int i = 1; i < 10; i++) {
            System.out.println(i);
        }
        System.out.println("start");
        for (int i = 1; i < 10; i++) {
            System.out.println(i);
        }
        System.out.println("==end===");
        for (int i = 1; i < 10; i++) {
            System.out.println(i);
        }
        //....
        for (int i = 1; i < 10; i++) {
            System.out.println(i);
        }
        //nextint(33)

        //直接在main中，写方法名();
        m1();
        m1();
        m1();

    }

    /*
    方法（method，function）都是兄弟关系，不要嵌套
       void - 返回值
       方法名，

     */
    public static void m1(){
        System.out.println("i am m1!1111");
        System.out.println("i am m1!2222");
    }
}
